package xiaof.demo.UserDao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import xiaof.service.UserServive;
import xiaof.service.impl.UserServiceImpl;

public class UserControler {
    public static void main(String[] args) {

        ApplicationContext app=new ClassPathXmlApplicationContext("applicationContext.xml");
        //ApplicationContext app=new FileSystemXmlApplicationContext("F:\\Java\\idea\\Spring\\Spring_Ioc\\src\\main\\resources\\applicationContext.xml");
        //UserServive userService = (UserServive) app.getBean("userService");
        UserServive userServive = app.getBean(UserServive.class);
        userServive.save();




    }
}
